package br.com.fromtis.jsf.modal.dao;

import java.io.Serializable;
import java.util.List;
import org.hibernate.Session;
import br.com.fromtis.jsf.util.HibernateUtil;



public class VendaDao<Venda> implements IDao<Venda>, Serializable{
    private static final long serialVersionUID = 1L;
    
    private Session session;
    private Class<Venda> classe;

	@SuppressWarnings( "unchecked" )
    @Override
    public List<Venda> getListEntity () {
		session = HibernateUtil.getInstance().getCurrentSession();
		List<Venda> listaRetorno = session.createQuery( "from Venda" ).list();
	    return listaRetorno;
    }

	@Override
    public void save ( Venda entity ) {
	    // TODO Auto-generated method stub
	    
    }

	@Override
    public void delete ( Venda entity ) {
	    // TODO Auto-generated method stub
	    
    }

	@Override
    public void merge ( Venda entity ) {
	    // TODO Auto-generated method stub
	    
    }

	@Override
    public Venda getEntity ( Serializable id ) {
	    // TODO Auto-generated method stub
	    return null;
    }
    

	
}
